class SmsTemplate {
  int id;
  String title;
  String content;
  String createdAt;

  SmsTemplate({this.id, this.title, this.content, this.createdAt});

  SmsTemplate.fromJsonMap(Map<String, dynamic> map)
      : id = map["id"],
        title = map["title"],
        content = map["content"],
        createdAt = map["created_at"];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = id;
    data['title'] = title;
    data['content'] = content;
    data['created_at'] = createdAt;
    return data;
  }
}
